Repository navigation
fix: in-window menus keep to the window and show a more-below hint (0.13.0) - #22
Merged
Merged
Conversation
… rows remain below
…ow a more-below hint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: in-window menus keep to the window and show a more-below hint (0.13.0)
Summary
.fx-menucarried nomax-heightor overflow, so a menu longer than the room under the bar ran off the bottom of the window.open()infrontend/src/shell/menubar.tsnow sets an inlinemax-height: menuCap(top)(the smaller of 75% of the window and the room down to 4 px above its bottom) while the card isvisibility: hidden, and the rest scrolls. The top is unchanged: the button's bottom edge plus 2 px, never moved up..fx-menu-list(the rows, which scrolls, with the mask) and.fx-menu-more(the pill).showMore(true)runs before the card shows, so the hint is in place on the first painted frame; the list'sscrollrunsshowMore(). Fade out 160 ms, back in 490 ms, none with reduced motion. The pill uses the card's own--barand--edge-strongtokens.resize, as it already did onblur, so the cap never goes stale.contextmenu,openAt(,place(,popover,role="menu"underfrontend/src). The dock's.ft-dock-menuis a CSS-placed panel inside the shared modulesrc/dock/, which is never edited here, so nothing else changed.native-menu.tsis untouched.demo/is rebuilt with its own README steps and carries the fix and 0.13.0.Commits
Version
v0.13.0 (release commit is last), minor bump from 0.12.2. Bumped:
src-tauri/tauri.conf.json(formcompiler's version file),src-tauri/Cargo.toml, theformextentry insrc-tauri/Cargo.lock,frontend/package.json, the two own-version fields infrontend/package-lock.json,backend/app/__init__.py,frontend/src/shell/version.ts, the demo engine's health version infrontend/src/demo/engine/router.ts, the README badge, and the rebuiltdemo/assets/formext.js.CHANGELOG.mdhas a 0.13.0 section;frontend/HASHOUT_LOG.md(#menu-cap, #menu-more) anddemo/HASHOUT_LOG.mdare updated.Checks
npm run buildinfrontend/(tsc --noEmitthenvite build): clean.npx tsc -p ../demo/tsconfig.json --noEmitthennpx vite build --config ../demo/vite.config.mjs): clean.npx vitest runinfrontend/: 10 files, 268 tests passed. No test reads the menu card, so none needed a change.file://, the rebuilt demo at 800x320 showed File with the pill at opacity 1 in each of its first five animation frames after the click (CPU not slowed), and the pill and fade in a screenshot.Not run: the engine tests (
./formext test engine); the desktop shell (Tauri) and macOS or Windows; the guide's 1871x1080 and 1280x720 sizes; the hint's fade timings (part way out at about 80 ms, back in by about 750 ms); End and Home, and arrow-key focus against the fade (the in-window menus have no arrow-key handling; Tab focus was not checked); reduced motion; a "before" build oforigin/main. Note for review: the menu's top (button bottom + 2, unchanged from main) sits 3.5 px above the bottom edge of the 38 px title row that holds the bar (.fx-menubarbox bottom at 37), as it did before this change; moving it down would change the look, so it was left as the guide's form.ext row asks.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.